export default {
  state: {
    sarr: [10, 20, 30]
  },
  actions: {
    add(newState: { sarr: number[] }, action: { type: string, val: number }) {
      newState.sarr.push(action.val)
      return newState
    }
  }
}